package com.kingdee.eas.cp.bc.baseData;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.bos.eventbus.event.action.KDActionEvent;
import com.kingdee.bos.webframework.exception.WafException;
import com.kingdee.bos.webframework.json.JSONUtils;
import com.kingdee.bos.webframework.dynamic.handler.AbstractWebEventHandler;
import com.kingdee.bos.eventbus.event.action.IActionEventHandler;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.custom.basedata.MeetingCostFactory;
import com.kingdee.eas.custom.basedata.MeetingCostInfo;

public class MeetingCostHandler extends AbstractWebEventHandler implements IActionEventHandler {
	public void onAction(KDActionEvent event) throws WafException,BOSException {
		String id=event.getReqeustContext().getHttpServletRequest().getParameter("id");
		MeetingCostInfo info = new MeetingCostInfo();
		try {
			info = MeetingCostFactory.getRemoteInstance().getMeetingCostInfo(new ObjectUuidPK(id));
		} catch (EASBizException e) {
			e.printStackTrace();
		}
		JSONUtils.SUCCESS(info);
	}
}